package com.example.demo.mapper;

import com.example.demo.domain.po.Room;
import com.example.demo.domain.query.BookQuery;
import com.example.demo.domain.query.RoomQuery;
import com.example.demo.domain.vo.BookVO;
import com.example.demo.domain.vo.RoomVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
@Mapper
public interface RoomMapper {
    //todo 房间全部查询
    List<RoomVO> getAll();
    //todo 按id查询房间
    RoomVO get(int id);
    //todo 修改房间
    int edit(Room floor);
    //todo 添加房间
    int add(Room floor);
    //todo 删除房间
    int del(int id);

    List<RoomVO> fuzzySearch(RoomQuery roomQuery);
}
